//
//  RecommendScrollerTableViewCell.m
//  WWAVPlayer
//
//  Created by dllo on 15/10/30.
//  Copyright © 2015年 LZY. All rights reserved.
//

#import "RecommendScrollerTableViewCell.h"
@interface RecommendScrollerTableViewCell()<MyScrollerViewDelegate>

@end
@implementation RecommendScrollerTableViewCell

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

- (void)passToTableViewWithIdNum:(NSString *)idNum
{
    [self.delegate passToCollectionWithIdNum:idNum];
}

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        
        self.myScrollerView = [[MyScrollerView alloc] init];
        
        self.myScrollerView.imageArr = self.imageArr;
        
        self.myScrollerView.titleArr = self.titleArr;
        
        [self.contentView addSubview:self.myScrollerView];
        
        self.myScrollerView.block = self.block;
        
        self.myScrollerView.delegate = self;
    }
    return self;
}
- (void)layoutSubviews
{
    [super layoutSubviews];
    
    self.myScrollerView.frame = self.contentView.bounds;
  
    self.myScrollerView.imageArr = self.imageArr;
    
    self.myScrollerView.titleArr = self.titleArr;
    
    self.myScrollerView.block = self.block;
    
    self.myScrollerView.delegate = self;

}
@end
